import axios from '../request'

// 标签管理

// 获取标签信息
const getTagApi = (data: object) => axios.get('/manage/tags/find', { params: data })

// 获取标签数量
const getTagNumApi = (data?: object) => axios.get('/manage/tags/total', { params: data })

// 设置标签状态
const setTagStatusApi = (data: object) => axios.post('manage/tags/update/status', data)

// 新增标签
const addTagApi = (data: object) => axios.post('/manage/tags/add', data)

// 删除标签
const delTagApi = (data: object) => axios.post('/manage/tags/del', data)

// 修改标签
const setTagApi = (data: object) => axios.post('/manage/tags/update', data)

export {
  getTagApi,
  setTagStatusApi,
  addTagApi,
  delTagApi,
  setTagApi,
  getTagNumApi
}